package com.lins.storedisk.dto;

import com.lins.disk.entity.FileEntity;

import java.text.SimpleDateFormat;

/**
 * @Author linshuo
 * @Date 2023/9/12 14:46
 */
//@Data
public class FileDTO extends FileEntity {

    private String imgUrl;//ico 文件logo
    private String createTime;//字符串

    public FileDTO(){

    }

    public FileDTO(String fileName, String fileSize, String share, String url, String fileType, String parUrl, String state, Integer uid, String imgUrl,String createTime) {
        super(fileName, fileSize, share, url, fileType, parUrl, state, uid);
        this.imgUrl = imgUrl;
        this.createTime = createTime;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setCreateTimeFormat(java.sql.Timestamp createdTime) {
        this.createTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(createdTime);
    }

}
